package com.atguigu.admin.controller;

import com.atguigu.hello.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 杨林
 * @create 2023-09-08 11:25 星期五
 * description:  测试自定义spring-boot-starter的功能
 */
@RestController
public class TestStarterController {
    
    @Autowired
    HelloService helloService;
    
    @GetMapping("/sayHello/{userName}")
    public String sayHello(@PathVariable("userName") String userName){
        String tom = helloService.sayHello("userName");
        return tom;
    }
    
}
